package com.chinags.system.region.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chinags.common.core.domain.BaseEntity;

/**
 * 行政区域表 region
 * 
 * @author shichenxing
 * @date 2019-07-05
 */
public class Region extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 区域id */
	private Integer regionId;
	/** 区域名 */
	private String regionName;
	/** 行政级别(1:省，2：市，3：区县) */
	private Integer regionLevel;
	/** 归属id */
	private Integer pId;
	/** 排序号 */
	private Integer regionOrder;
	/** 邮政编码 */
	private String postalCode;

	public void setRegionId(Integer regionId) 
	{
		this.regionId = regionId;
	}

	public Integer getRegionId() 
	{
		return regionId;
	}
	public void setRegionName(String regionName) 
	{
		this.regionName = regionName;
	}

	public String getRegionName() 
	{
		return regionName;
	}
	public void setRegionLevel(Integer regionLevel) 
	{
		this.regionLevel = regionLevel;
	}

	public Integer getRegionLevel() 
	{
		return regionLevel;
	}
	public void setPId(Integer pId) 
	{
		this.pId = pId;
	}

	public Integer getPId() 
	{
		return pId;
	}
	public void setPostalCode(String postalCode) 
	{
		this.postalCode = postalCode;
	}

	public String getPostalCode() 
	{
		return postalCode;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("regionName", getRegionName())
            .append("regionLevel", getRegionLevel())
            .append("pId", getPId())
            .append("regionOrder", getRegionOrder())
            .append("postalCode", getPostalCode())
            .toString();
    }

	public Integer getRegionOrder() {
		return regionOrder;
	}

	public void setRegionOrder(Integer regionOrder) {
		this.regionOrder = regionOrder;
	}
}
